Repository navigation
Add bounded Matrix evaluation and immutable shell sessions - #16
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Matrix submissions can now be checked and evaluated without a book/paragraph wrapper.
nilcompiler --matrix-shellprovides an interactive session with immutable retained bindings, readable terminal results, and JSON records for piped clients. The same session API accepts Matrix source and versioned NILData requests.Both inputs use the shared AST/type checker and independent pure-profile checks before entering the existing VM. Retained values are owned typed snapshots, restored as literal data for the next submission. Earlier computations are never replayed, and new bindings publish together only after execution, snapshot export, restoration checks, and result projection succeed. Failures and cancellation preserve the previous session.
Execution has instruction, work, text, snapshot, state, report, and cooperative deadline limits. Calls, imports, mutation, host commands, and native submission execution remain outside this profile. The deadline begins after compilation/loading; these limits are not OS resource isolation. The design and user documentation describe these boundaries and the remaining Anomalous integration work.
This also fixes exponential nested-generic resolution in the shared type checker and protects shell input boundaries: command-like lines inside raw text remain literal, and oversized submissions cannot execute their remaining lines separately.
Validation: LLVM-enabled Release build; full CTest suite (522 passed, optional PostgreSQL integration skipped); focused admission/session regressions; manual terminal checks for typed values, retained bindings, and rollback; repository policy and whitespace checks. New regressions cover VM budgets and cancellation, owned snapshots, source/request binding lookup, exact scalar types, nested arrays, atomic publication, malformed inputs, and shell recovery.
Stacked on #15 (
codex/nildata).